import request from '@/utils/request'

// 查询访客列表
export function listVisitRecordYuchi(query) {
  return request({
    url: '/vqms/visitRecord/yuchi/list',
    method: 'get',
    params: query
  })
}

// 查询访客详细
export function getVisitRecordYuchi(id) {
  return request({
    url: '/vqms/visitRecord/yuchi/' + id,
    method: 'get'
  })
}

// 新增访客
export function addVisitRecordYuchi(data) {
  return request({
    url: '/vqms/visitRecord/yuchi/add',
    method: 'post',
    data: data
  })
}

// 修改访客
export function updateVisitRecordYuchi(data) {
  return request({
    url: '/vqms/visitRecord/yuchi/update',
    method: 'put',
    data: data
  })
}

// 删除访客
export function delVisitRecordYuchi(id) {
  return request({
    url: '/vqms/visitRecord/yuchi/' + id,
    method: 'delete'
  })
}